# 列表的真正意义的复制

# 1.假复制 用 = 进行赋值

# names = ["Mike","Mary","Jan","Jack"]
# names_源文件 = names
# names.append("shanlin")
# print("names = ",names)
# print("names_源文件 = ",names_源文件)


# 3.正确的方法2： 切片[:]

names = ["Mike","Mary","Jan","Jack"]
names_源文件 = names[:]
names.append("shanlin")
print("names = ",names)
print("names_源文件 = ",names_源文件)


# 2.正确的方法1：copy()
